package server;

/**
 * @author Idan
 * Creates an instance of the server using parameters read from the config.properties file
 */
public class ServerThread implements Runnable
{

	private String host;
	private String port;
	private String databaseName;
	private String username;
	private String password;
	public ServerThread(String host, String port, String databaseName, String username, String password )
	{
		this.host = host;
		this.port = port;
		this.databaseName = databaseName;
		this.username = username;
		this.password = password;
	}
	 public void run()
	 {
		 Server server = new Server();
			server.runServer(host,port,databaseName,username,password);
	 }
}
